<template>
  <div class="page">
    <div class="panel">
      <div class="login-welcome" :style="{backgroundImage:`url(${login_show})`}"/>
      <div class="form">
            <el-input :min="1" :max="10" placeholder="用户名"></el-input>
            <el-input :min="1" :max="10" placeholder="用户名"></el-input>
            <el-button type="primary" @click="loadMainPageFunc">主要按钮</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  mounted() {},
  data() {
    return {
      login_show:require('@/assets/login/login-show.jpg'),
    };
  },
  methods: {
    loadMainPageFunc(){
      this.$router.push('/main');
    },
  }
};
</script>


<style scoped>
.page {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #F2F2F2;
}
.panel {
  display: flex;
  flex-direction: row;
  width: 75%;
  background-color: white;
  height: 65%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.login-welcome {
  flex: 1;
  background-image: url();
}
.form {
  flex: 0.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

</style>